/**
 * @author Michael,Nov 21, 2012
 *
 */
package com.tm.service;

import java.util.List;

import com.tm.pojo.Task;
import com.util.CommonResultMap;

/**
 * @author Michael
 *
 */
public interface TaskService {
	
	public CommonResultMap saveTask(Task task);
	
	CommonResultMap saveTasks(Task[] tasks);
	
	public CommonResultMap updateTask(Task task);
	
	public CommonResultMap deleteTask(Integer task);
	
	public Task findByName(String taskName);
	
	public List<Task> listTasks();
}
